<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<div class="modal" id="modal-login">
   <div class="modal-dialog">
     <div class="modal-content">
       <div class="modal-header">
         <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon-remove-sign"></i></button>
         <h4 class="modal-title"><spring:message code="LOGIN_TO_SYSTEM"/></h4>
       </div>
       <form class="form-horizontal" role="form">
         <input type="hidden" id="callback">
         <div class="modal-body register">
		  <div class="form-group">
		  	<div class="col-lg-offset-2 col-lg-8">
			    <label for="inputEmail1" class="control-label"><spring:message code="EMAIL"/></label>
		    	<input type="text" class="form-control" name="j_username" id="j_username" placeholder="Email">
 			</div>
		  </div>
		  <div class="form-group">
		  	<div class="col-lg-offset-2 col-lg-8">
			    <label for="inputPassword1" class="control-label"><spring:message code="PASSWORD"/></label>
		    	<input type="password" class="form-control" name="j_password" id="j_password" placeholder="Password">
		    </div>
		  </div>
		  <div class="form-group">
		    <div class="col-lg-offset-2 col-lg-10">
		      <div class="checkbox">
		        <label>
		          <input type="checkbox" class="remember" name="_spring_security_remember_me" id="rememberme"> <spring:message code="REMEMBER_PASSWORD"/>
		        </label>
		      </div>
		    </div>
		  </div>
		  <div class="form-group">
		    <div class="col-lg-offset-2 col-lg-10">
		    	<a href="javascript: void(0);" onclick="$('#modal-login').modal('hide'); $('#passwordForgotenPopin').modal('show');" class="btn btn-link"> <spring:message code="FORGOT_PASSWORD"/></a>
		        <a href="javascript: void(0);" onclick="redirect('register');" class="btn btn-link"> <spring:message code="REGISTER"/></a>
			</div>
		  </div>

		  <div class="alert alert-danger col-lg-offset-2 col-lg-8" id="error-message" style="display: none;">
	        <strong>Ups!</strong> <spring:message code="EMAIL_PASSWORD_WRONG"/>.<br> <spring:message code="TRY_AGAIN"/>.
	      </div>		      
		</div>
        <div class="modal-footer">
        	<div class="btn-group amount-2">
            	<button type="button" class="btn btn-default" onclick="login()"><spring:message code="LOGIN"/></button>

            	<button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cerrar</button>
        	</div>
        </div>
       </form>
     </div>
   </div>
 </div>
 <!-- end POPINS -->